Forum Activity for @michael

michael
@michael
12/10/24 12:18:28AM
7,821 posts

videos play when hoovering


Design and Skin Customization

In which case the general concept would be to put those on the surrounding DIV that houses the player. You may need some sort of id for the player.

Depending on which player you're using how to do it will be different. You'll need to find a way to communicate with the player.

I'd expect that the player is defined on a javascript variable probably. Probably something like
 video_player_h2xkeYNr
Some sort of unique identifier.

So on the DIV add
onmouseover="xxYourModule_play_hover_video('video_player_h2xkeYNr')" onmouseout="xxYourModule_stop_hover_video()"

Then your functions in your .js file would be
function xxYourModule_play_hover_video(id){
  id.play();
}

function xxYourModule_stop_hover_video(){
  StopAllPlayers();
}


That's psudo code but hopefully gives you a point in the right direction.
michael
@michael
12/10/24 12:09:37AM
7,821 posts

Graph module


Using Jamroom

The underlying graphing system is this one:
https://www.flotcharts.org

You'll see there are a ton of ways to use that system. The jrGraph module is just scaffolding around that.

For a simple-ish example look in the jrTracker_report_created_resolved() function in the jrTracker module. It plots tickets opened vs tickets closed
report.jpg report.jpg - 161KB
michael
@michael
12/08/24 11:14:17PM
7,821 posts

ProJam5 video page


Design and Skin Customization

I would expect it to work outside the profile page. Maybe add something to it, so

Create a template in your active skin called something unique, say 'avacardo'. that seam safe.

/skins/YOUR SKIN/avacardo.tpl

inside that put:
this is the avacardo template.<br>
{jrCore_list module="jrCombinedVideo" template="avacardo_video.tpl"} 
Then make another file called 'avacardo_video.tpl' and inside that put:
here I am in the avacardo video template


When you visit yoursite.tpl/avacardo you should see both of those lines of text. If you can then add {debug} to see what info you have.

Docs: debug
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1477/debug

here I am in the avacardo video template
{debug}

updated by @michael: 12/08/24 11:14:42PM
michael
@michael
12/08/24 11:04:54PM
7,821 posts

videos play when hoovering


Design and Skin Customization

You used to be able to, but I think its being blocked by browsers now. Using the 'Follow Me' skin I turned on a setting built into the skin "Auto Play" and it looks like it tries to do something when I scroll the timeline but none of them actually play.

I suspect you probably could get it to work using
onmouseover=""
in combination with a javascript function to start the player.

I suspect that might not work across all browsers.

As to they why: I remember a few years ago when I would ctrl+click to open many new tabs and if a couple had auto play on I'd get a ton of noise and not know where it was coming from. Thats probably related to the reason the browser blocks it.
auto.jpg auto.jpg - 295KB
michael
@michael
12/08/24 10:53:43PM
7,821 posts

Graph module


Using Jamroom

Its more of a helper module. Not all modules do something that's customer facing.

If you have the Graphs module turned on then you will see buttons on the dashboard that charts the data, eg signups this month, the graph will show how many per day.

Yes you can use its functions inside a module you build to display things in chart or graph form. That would save having to build that functionality but there's no buttons or controls really.
graphs.jpg graphs.jpg - 230KB
michael
@michael
12/05/24 04:26:01AM
7,821 posts

list orders


Design and Skin Customization

the problem in your one is that "video_...." is only going to be a key on uploaded videos, try using a key that is on all of them or using the || which is OR but that will make it heavier on your system. May be ok if its not pulling a ton per page.

so try search1="video_rating_overall_average_count > 3 || youtube_rating_overall_average_count > 3"
michael
@michael
12/04/24 06:29:30PM
7,821 posts

list orders


Design and Skin Customization

the start will be something like:
{jrCore_list module="jrRating" search1="rating_value > 3"  search2="rating_module = jrAudio" limit="10" }
michael
@michael
12/04/24 06:21:10PM
7,821 posts

list orders


Design and Skin Customization

The problem with doing it with an IF is its quite loose. If you wanted say 10 of the most recent you'd have to get say 100 then loop over them. If you get the 10 within that 100 that are 4+ then no problem but if in that 100 only 8 are 4+ then you wont show all you need.

What's the exact thing you want? I'll build a query that works in a template.
michael
@michael
12/04/24 05:55:02PM
7,821 posts

ProJam5 video page


Design and Skin Customization

Should work. Did you run the INTEGRITY CHECK and the RESET CACHES tool. That should move the videos to a new url, something like 'uploaded_video'.

Also try making the most basic query to see if that works, then modify it.
{jrCore_list module="jrCombinedVideo"} 
michael
@michael
12/04/24 05:52:15PM
7,821 posts

list orders


Design and Skin Customization

To do that, the first step is figuring out which module is doing the ratings, then get a jrCore_list of those item. The data will come back with the item_id of the thing its rated for then do a search for those item ids. Loop over the ratings and insert the corresponding item.

Its almost easier to do it in a module
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1569/defining-your-own-smarty-function

Do a search in the module to get the ids, do another search using those ids then send the whole thing to a template to loop over.
  10